using Microsoft.Extensions.Logging;
using Vin.Tool.Attributes;

namespace Vin.Extension.LoggerNotify.Options;

[Option("Logging:Notify:QiyeWechat")]
public class QiyeWechatOption
{
    /// <summary>
    /// 启用企业微信通知
    /// </summary>
    public bool Enable { get; set; } = false;

    /// <summary>
    /// 发送者
    /// </summary>
    public List<string> Senders { get; set; } = new();

    /// <summary>
    /// 根据日志级别 使用不同的机器人发送
    /// </summary>
    public Dictionary<LogLevel, List<string>> LevelSenders { get; set; } = new();

    /// <summary>
    /// 接受者
    /// </summary>
    public List<string> Receivers { get; set; } = new();

    /// <summary>
    /// @人员的级别
    /// </summary>
    public List<LogLevel> ReceiveLevels { get; set; } = new();

    /// <summary>
    /// 前缀
    /// </summary>
    public string? Prefix { get; set; }

    /// <summary>
    /// 内容
    /// </summary>
    public string? Content { get; set; }

    /// <summary>
    /// 后缀
    /// </summary>
    public string? Suffix { get; set; }
}